﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 建造者模式
{
    public class ConcreteBuilderB : Builder
    {
        readonly Computer _computer = new Computer();
        public override void BuildCpu()
        {
            _computer.Add("CPU-B");
        }

        public override void BuildMotherboard()
        {
            _computer.Add("Motherboard-B");
        }

        public override void BulidHardDisk()
        {
            _computer.Add("HardDisk-B");
        }

        public override void BulidRAM()
        {
            _computer.Add("RAM-B");
        }

        public override Computer GetBulidComputer()
        {
            return _computer;
        }
    }
}
